package com.woniu.service.impl;

import com.woniu.adapter.OrderAdapter;
import com.woniu.outlet.po.OrderDeliver;
import com.woniu.service.OrderDeliverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDeliverServiceImpl implements OrderDeliverService {

    @Autowired
    private OrderAdapter orderAdapter;

    @Override
    public List<OrderDeliver> findOrderDeliver() throws Exception{
        List<OrderDeliver> orderDelivers = orderAdapter.findOrderDeliver();
        return orderDelivers;
    }

    @Override
    public OrderDeliver findOrderDeliverByOrderNo(String orderNo) throws Exception {
        OrderDeliver orderDeliver = orderAdapter.findOrderDeliverByOrderNo(orderNo);
        return orderDeliver;
    }
}
